package com.qijian.maindata.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qijian.common.enums.ApprovalDescriptionEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;

/**
 * 核算工单对象 main_adjust_order_flow_detail
 *
 * @author qijian
 * @date 2024-10-22
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("main_adjust_order_flow_detail")
public class AdjustOrderFlowDetail extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "ID")
    private Long id;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "${column.columnComment}")
    private Long mainId;

    @ApiModelProperty(value = "单据编号")
    private String number;


    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "作业人ID")
    private Long taskId;


    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "来源ID")
    private Long sourceId;


    @ApiModelProperty(value = "来源类型")
    private String sourceType;

    @Excel(name = "开工令/编号")
    @ApiModelProperty(value = "开工令/编号")
    private String sourceNumber;

    @Excel(name = "产品名称")
    @ApiModelProperty(value = "产品名称")
    private String sourceName;

    @Excel(name = "派工内容")
    @ApiModelProperty(value = "派工内容")
    private String dispatchContent;


    @ApiModelProperty(value = "绩效年月")
    private String checkYm;

    @Excel(name = "工时")
    @ApiModelProperty(value = "工序工时")
    private BigDecimal workTime;

    @Excel(name = "工价")
    @ApiModelProperty(value = "工序工价")
    private BigDecimal workCost;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "派工时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "派工时间")
    private Date dispatchTime;


    @ApiModelProperty(value = "状态(待提交,已提交)")
    private String status;

    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remarks;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "创建者ID")
    private Long createId;

    @Excel(name = "作业人")
    @ApiModelProperty(value = "作业人")
    private String taskBy;

}
